package com.yzyz.service;

import java.awt.Image;
import java.awt.image.BufferedImage;
import java.util.List;

import com.yzyz.bean.scenic.PictureBean;
import com.yzyz.dao.PictureDao;


public interface PictureService extends IBaseService{
	void setPictureDao(PictureDao pictureDao);
	
	byte[] resize(Image image, int width, int height, String formatName);
	
	BufferedImage bytes2Image(byte[] bytes);
	
	int checkCount(int scenicId);
	
	List<PictureBean> getPicturesWithoutContents(int ownerId);
	
	PictureBean getPicture(int pictureId);
	
	/**
	 * 通过景点名字来查找图片
	 * @param name
	 * @return
	 */
	PictureBean getPictureByAttName(String name, int scenicId);
	
}
